package com.mojito.gorm.executor.impl;

import com.mojito.gorm.executor.GormExecutor;
import com.mojito.gorm.map.SqlMapInfo;


/**
 * @author mojito
 */
public class SimpleGormExecutor implements GormExecutor {

    @Override
    public <T> T execute(SqlMapInfo sql, Object[] params) {
        StatementHandler handler = new StatementHandler();
        handler.setParamHandler(new ParamHandler());
        handler.setResultSetHandler(new ResultSetHandler());
        return handler.handle(sql, params);
    }
}
